package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

/**
 * @author HuanyuZhou
 * @date 2020/4/24 10:22
 */
public interface IUserDao {

    //查询所有用户

    public List<User> findAll() throws Exception;

    //根据条件进行查询
    public User findByCondition(User user) throws Exception;

    public Integer updateOne(User user) throws Exception;

    public Integer deleteOne(Integer id) throws Exception;

    public Integer insertOne(User user) throws  Exception;
}
